package com.jnxx.task.service.impl;

import com.jnxx.basic.service.impl.BaseServiceImpl;
import com.jnxx.task.domain.OkrStaff;
import com.jnxx.task.mapper.OkrStaffMapper;
import com.jnxx.task.service.IOkrStaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务实现类：
 */
@Service
public class OkrStaffServiceImpl extends BaseServiceImpl<OkrStaff> implements IOkrStaffService {

    @Autowired
    private OkrStaffMapper staffMapper;

    @Override
    public OkrStaff findByUserId(String userId) {
        return staffMapper.findByUserId(userId);
    }

    public String[] findNameByIds(List<Long> longList) {
        return staffMapper.findNameByIds(longList);
    }
}
